<?php 
$res = Categories::show_categories();

foreach($res as $value){
    $cat_id = $value['id'];
    ?>
        
   <a href="index.php?cat=<?php echo $cat_id; ?>"> <?php echo $value['cat_name']; ?></a> <br />
<?php } ?>
